*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Microsoft Yahei';
    font-size: 14px;
}
html,body{
    height: 100%;
    width: 100%;
}
body::-webkit-scrollbar{
    width: 12px;
    background-color: #F5F5F5;
}
body::-webkit-scrollbar-thumb{
    background-color: #C1C1C1;
}
body::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    /*border-radius: 10px;*/
    background-color: #F5F5F5;
}
a{
    text-decoration: none;
}
#app{
    width: 100%;
    height: 100%;
}
.header{
    width: 100%;
    height: 70px;
    line-height: 78px;
    padding:0 20px;
    /*background-color: #879FA0;*/
    position: relative;
    background: -moz-linear-gradient(left, #4FC08D 0, #086CAF 100%);
    background: -webkit-linear-gradient(left, #4FC08D 0, #086CAF 100%);
    background: -o-linear-gradient(left, #4FC08D 0, #086CAF 100%);
    background: -ms-linear-gradient(left, #4FC08D 0, #086CAF 100%);
    background: linear-gradient(to left, #4FC08D 0, #086CAF 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4FC08D', endColorstr='#086CAF', GradientType=1);
}
.header h1{
    font-size: 30px;
    color: #FAFAFA;
    font-family: fantasy,cursive,consolas;
    text-shadow: 1px 1px 1px #000, 1px 1px 3px #CCC;
    display: inline-block;
    border-bottom: none;
}
.header span{
    color: #F2F2F2;
}
.left{
    float: left;
}
.right{
    float: right;
}
.clearfix:after{
    content: '';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.preview-content{
    width: 100%;
    height: 100%;
}
/**/
.prev-editor{
    width: 50%;
    height: 100%;
    position: relative;
}
.prev-text::-webkit-scrollbar{
    width: 6px;
    background-color: #F5F5F5;
}
.prev-text::-webkit-scrollbar-thumb{
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}
.prev-text::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}
.prev-view::-webkit-scrollbar{
    width: 6px;
    background-color: #F5F5F5;
}
.prev-view::-webkit-scrollbar-thumb{
    background-color: rgb(255, 255, 255);
    background: linear-gradient(to top, rgb(79, 192, 141) 0px, rgb(8, 108, 175) 100%);
    border-radius: 10px;
}
.prev-view::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}
.prev-text{
    width: 100%;
    height: 100%;
    overflow: auto;
    border: none;
    outline: none;
    background: #333;
    background-color: #002B36;
    font-family: 'Microsoft Yahei';
    color: #FAFAFA;
    /*color: #1ecf7f;*/
    color: #d1d0d0;
    font-size: 16px;
    padding: 1em;
    resize: none;
    line-height: 1.6;
}

/**/
.prev-view{
    width: 50%;
    height: 100%;
    padding: 1em;
    overflow-y: auto;
    overflow-x: hidden;
}
.prev-btn,
.prev-editor-btn{
    width: 90px;
    height: 26px;
    border-radius: 8px;
    line-height: 26px;
    text-align: center;
    color: green;
    background-color: #fafafa;
    display: none;
    cursor: pointer;
}
.copy-btn{
    width: 90px;
    height: 26px;
    border-radius: 8px;
    line-height: 26px;
    text-align: center;
    color: #F2F2F2;
    background-color: #3DAB96;
    cursor: pointer;
    position: absolute;
    top: 26px;
    right:300px;
    z-index: 998;
    transition: all .5s;
}
.copy-html{
    width: 90px;
    height: 26px;
    border-radius: 8px;
    line-height: 26px;
    text-align: center;
    color: #F2F2F2;
    background-color: #3DAB96;
    cursor: pointer;
    position: absolute;
    top: 26px;
    right:200px;
    z-index: 998;
    transition: all .5s;
}
.copy-btn:hover,
.copy-html:hover,
.clear-btn:hover{
    color: #fafafa;
    background-color: #319381;
}
.clear-btn{
    width: 90px;
    height: 26px;
    border-radius: 8px;
    line-height: 26px;
    text-align: center;
    color: #F2F2F2;
    background-color: #3DAB96;
    cursor: pointer;
    position: absolute;
    top: 26px;
    right:106px;
    z-index: 998;
    transition: all .5s;
}
@media screen and (max-width: 1040px) {
    .header{
        height: 60px;
        line-height: 62px;
    }
    .header h1{
        font-size: 25px;
        margin-top: 6px;
    }
    .header span{
        font-size: 12px;
    }
    .preview-content{
        width: 100%;
        height: 100%;
        position: relative;
    }
    .star-gihub{
        right:-8px !important;
        top: 32px !important;
    }
    .copy-btn,
    .clear-btn,
    .copy-html{
        display: none;
    }
    .prev-btn{
        display: block;
        position: absolute;
        top: 0;
        right:0;
        z-index: 998;
    }
    .prev-editor-btn{
        display: block;
        position: absolute;
        top: 0;
        right:0;
        z-index: 997;
        background-color: #36A399;
        color: #fff;
        font-weight: bold;
    }
    .prev-editor{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        right:0;
        z-index: 990;
    }
    .prev-text{
        width: 100%;
        height: 100%;
        overflow: auto;
        border: none;
        outline: none;
        background: #333;
        font-family: 'courier, monospace';
        color: #FAFAFA;
        /*color: #1ecf7f;*/
        font-size: 14px;
        padding: 1em;
        resize: none;
        line-height: 1.6;
    }
    /**/
    .prev-view{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        right:0;
        padding: 1em;
        overflow: auto;
    }
}
